# -*- coding: UTF-8 -*-
from fastapi import FastAPI
import uvicorn

app = FastAPI()


@app.get("/")
async def main():
    return {"message": "Helloworld，FastAPI"}


if __name__ == '__main__':
    uvicorn.run(app, host="127.0.0.1", port=8000)

# 也可以使用以下命令行方式进行启动
# uvicorn FastAPI_No.1_helloworld.py:app --reload
